import { sleep } from 'antd-mobile/es/utils/sleep'

export const demoSrc = '';
export async function mockUpload(file) {
    await sleep(3000);
    return {
        url: URL.createObjectURL(file),
    };
}
export async function mockUploadFail() {
    await sleep(3000);
    throw new Error('Fail to upload');
}